package com.kirayous.api.strategy;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author KiraYous
 * @version V1.0
 * @Package com.kirayous.api.strategy
 * @date 2021/10/25 19:56
 */
public interface UploadStrategy extends InitializingBean {

    /**
     * 上传文件
     *
     * @param file 文件
     * @param path 上传路径
     * @return {@link String} 文件地址
     */
    String uploadFile(MultipartFile file, String path);


}
